extend activity_layout
block page
	h1.page-header 新增活动

	form.form-horizontal(role="form")
		.form-group
			label.col-sm-2.control-label 活动名称
			.col-sm-9
				input.form-control(type="text",ng-model="activity.name")

		.form-group
			label.col-sm-2.control-label 活动状态
			.col-sm-9
				select.select.form-control(ng-model="activity.status")
					option(ng-repeat="status in ACTIVITY_STATUS",value="{{status.value}}",ng-selected="status.value==activity.status") {{status.text}}

		.form-group
			label.col-sm-2.control-label 活动开始日期
			.col-sm-9
				input.form-control(type="text",ng-model="activity.start_time", bs-datepicker)

		.form-group
			label.col-sm-2.control-label 活动结束日期
			.col-sm-9
				input.form-control(type="text",ng-model="activity.end_time", bs-datepicker)

		.form-group
			label.col-sm-2.control-label 活动内容
			.col-sm-9
				text-angular(ng-model="activity.content")

		.form-group
			.col-sm-offset-2.col-sm-10
				button.btn.btn-primary(ng-click="save()") 保存
